package com.jnevision.insurancerate.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.jnevision.insurancerate.model.InsuranceRate;
import com.jnevision.insurancerate.service.InsuranceRateServiceImpl;


/**
 * <p>
 * 社保费率 前端控制器
 * </p>
 *
 * @author gavin
 * @since 2019-07-18
 */
@RestController
@RequestMapping("/insurancerates")
public class InsuranceRateController extends ApiController {

	@Autowired
	private InsuranceRateServiceImpl insuranceRateServiceImpl;
	
	@GetMapping
	public R<InsuranceRate> get(){
		
		return this.success(this.insuranceRateServiceImpl.list().get(0));
	}
	
}

